package com.vhall.component.controller.room.facade;

import com.vhall.component.plugin.common.annotation.PaasCallbackSignAuth;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author guoxin.wang
 * @date 2021/7/12 17:30
 */
@FeignClient(value = "CallBackFacade", path = "/callback")
public interface CallBackFacade {

    @PostMapping(value = "/index")
    String index(@RequestBody Map<String, Object> callBack);

    /**
     * 直播间回调函数
     *
     * @param callBack
     * @return
     */
    @PostMapping(value = "/lives/index")
    String liveIndex(@RequestBody Map<String, Object> callBack);

    /**
     * 音视频回调函数
     *
     * @param callBack
     * @return
     */
    @PostMapping(value = "/record/index")
    String recordIndex(@RequestBody Map<String, Object> callBack);
}
